package com.server.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.server.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author zgr
 * @since 2023-07-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
@ApiModel(value = "SysRole对象", description = "角色表")
public class SysRole extends BaseEntity {

    private static final long serialVersionUID = -1408398560064038385L;

    @ApiModelProperty("名称")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty("角色代码")
    @TableField("role_key")
    private String roleKey;

    @ApiModelProperty("角色状态（0 正常 1 停用）")
    @TableField("status")
    private Integer status;

}
